package com.dsbridge.bank.business;

import java.sql.SQLException;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.dsbridge.bank.model.Payment;

public interface PaymentBusinessServiceInterface {

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Payment insert(Payment p);

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Payment update(Payment p) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Payment delete(Payment p) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Payment retrievePaymentbyTaxid(int taxid)
			throws SQLException;

}